package com.ruoyi.project.relation.mapper.domain;

/**
 *
 **/
public class GlobalUpdateBitColumnMO {

    private String attrName;

    private String tableName;
    /**
     * 主键名称,默认为 tableName+"_id"
     */
    private String tableIdName;

    private Long ownerId;

    //设置状态值,如果该值不为null,则不会置位和清零
    private Long attrValue;

    //如果清零置位同时存在,则会先置位再清零
    private Long setbBitAttrValue;

    //如果清零置位同时存在,则会先置位再清零
    private Long clrBitAttrValue;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
        if(this.tableIdName==null&&tableName!=null){
            this.tableIdName=tableName+"_id";
        }
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public Long getSetbBitAttrValue() {
        return setbBitAttrValue;
    }

    public void setSetbBitAttrValue(Number setbBitAttrValue) {
        this.setbBitAttrValue = setbBitAttrValue ==null?null: setbBitAttrValue.longValue();
    }

    public Long getClrBitAttrValue() {
        return clrBitAttrValue;
    }

    public void setClrBitAttrValue(Number clrBitAttrValue) {
        this.clrBitAttrValue = clrBitAttrValue ==null?null: clrBitAttrValue.longValue();
    }

    public Long getAttrValue() {
        return attrValue;
    }

    public void setAttrValue(Number attrValue) {
        this.attrValue = attrValue ==null?null: attrValue.longValue();
    }

    public String getTableIdName() {
        return tableIdName;
    }

    public void setTableIdName(String tableIdName) {
        this.tableIdName = tableIdName;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }
}
